import Vue from 'vue'
import Vuex from 'vuex'

Vue.use(Vuex)
import shopro from './modules/shopro.js'
import user from './modules/user.js'
import cart from './modules/cart.js'
import statebar from './modules/statebar.js'

const store = new Vuex.Store({
	state: {
		category: "",
	},
	mutations: {
		getCategory(state, id) {
			state.category = id;
		},
	},
	modules: {
		shopro,
		user,
		cart,
		statebar

	}
})

export default store
